package com.ys.extendsdemo;

/**
 * 派生类---子类一号子类
 * @author CodeYang
 * @version 2020/12/15 11:58
 */
public class DeriveClass01 extends Superclass {

    private  int score;

    public static void main(String[] args) {

        DeriveClass01 deriveClass = new DeriveClass01();
        deriveClass.show();
        deriveClass.score = 20;

    }


    @Override
    void show(){
        System.out.println("子类重写"+"分数为:"+score);
    }
}
